This is similar to above movie. But, more complex. After fill each triangle, we need to undo the stretch of the triangle to show correctly the original picture.

Here I cut each triangle into two 90 degree triangles. By this, I need to calculate which side is the longest side of a triangle. I think using skew technique would make script simpler.

The script on this movie is not optimized. It is still a mess. I dont have time to revise it.